import request from '@/utils/request'

const bulletinApi = {
    /**
     * 公告配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/setting/bulletin/detail'
        })
    },

    /**
     * 公告配置保存
     */
    save(params: {
        is_open: number | boolean;
        title: string;
        content: string;
    }): Promise<any> {
        return request.post({
            url: '/setting/bulletin/save',
            params
        })
    }
}

export default bulletinApi
